Get it on crates.io.
Documentation available at https://docs.rs/mockito.
Before upgrading, make sure to check out the changelog.
Contribution Guidelines
- Check the existing issues and pull requests.
- One commit is one feature - consider squashing.
- Format code with
cargo fmt
. - :shipit:
Development
Tests
Run tests:
...or run tests using a different toolchain:
...or run tests while disabling the default features (e.g. the colors):
Code style
Mockito uses rustfmt as a general code style.
Install rustfmt
:
Format code:
Some editors might provide a plugin to format your Rust code automatically.
Linter
Mockito uses clippy as a linter.
Install clippy
:
Run the linter:
# Touch a file to force cargo to rerun clippy on the project
...or run the linter using a different toolchain:
Release
Release:
&&
Benchmarks
Install rust nightly
:
Run benchmarks:
Logo courtesy to http://niastudio.net :ok_hand: